import myaxios from "../MyAxios";
import Base from "../Base";
const MMURL = Base.MMURL
const cinemaApi = {
  /**查询所有影院信息 */
  queryAll(){
    let url = MMURL + '/cinemas'
    return myaxios.get(url)
  },

  /** 查询所有的影院标签 */
  queryTages(){
    let url = MMURL + '/cinema/tags'
    return myaxios.get(url)
  },

  /**
 * 添加电影院
 * @param {Object} params 
 */
  add(params){
    let url = MMURL + '/cinema/add'
    return myaxios.post(url,params)
  }
}

export default cinemaApi